home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / operation-graduates.swf / scripts / frame_41 / DoAction_15.as < prev    next >
Text File  |  2011-10-17  |  1KB  |  23 lines

  1. function playSound(piece, pan)
  2. {
  3.    this[piece].start();
  4. }
  5. function playLoop(piece)
  6. {
  7.    this[piece].start(0,999);
  8. }
  9. function stopLoop(piece)
  10. {
  11.    this[piece].stop(piece);
  12. }
  13. this.createEmptyMovieClip("sounds",soundDepth);
  14. soundList = ["sound.rollover","sound.onrelease","sound.onpress","music.intro","music.level","music.boss","sound.gun1","sound.kidsplode","sound.powerup","sound.missile.explode","sound.bomb.explode","sound.beehive.explode","sound.beehive.loop","sound.homing.explode","sound.helix","sound.helix.explode","sound.gun2","sound.asteroid.explode","sound.ready.1","sound.ready.2","sound.ready.3","sound.ready.4","sound.ready.5","sound.goodjob.1","sound.goodjob.2","sound.goodjob.3","sound.goodjob.4","sound.goodjob.5","sound.goodjob.6","sound.cheat","sound.prepare","sound.gameover.1","sound.gameover.2","sound.gameover.3","sound.1up","sound.codemodulator","sound.boss.explode"];
  15. i = 0;
  16. while(i < soundList.length)
  17. {
  18.    sounds.createEmptyMovieClip("fx" + i,i);
  19.    this[soundList[i]] = new Sound(sound["fx" + i]);
  20.    this[soundList[i]].attachSound(soundList[i]);
  21.    i++;
  22. }
  23.